﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Collections.ObjectModel;

namespace for7raid.vkPlayer
{
    public class PlayList : DependencyObject
    {


        public string SearchText
        {
            get { return (string)GetValue(SearchTextProperty); }
            set { SetValue(SearchTextProperty, value); }
        }

        // Using a DependencyProperty as the backing store for SearchText.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty SearchTextProperty =
            DependencyProperty.Register("SearchText", typeof(string), typeof(PlayList), new UIPropertyMetadata("Новый лист"));


        public string FilterText
        {
            get { return (string)GetValue(FilterTextProperty); }
            set { SetValue(FilterTextProperty, value); }
        }

        // Using a DependencyProperty as the backing store for FilterText.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty FilterTextProperty =
            DependencyProperty.Register("FilterText", typeof(string), typeof(PlayList), new UIPropertyMetadata(""));

        


        public ObservableCollection<MediaItem> Items
        {
            get { return (ObservableCollection<MediaItem>)GetValue(ItemsProperty); }
            set { SetValue(ItemsProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Items.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ItemsProperty =
            DependencyProperty.Register("Items", typeof(ObservableCollection<MediaItem>), typeof(PlayList), new UIPropertyMetadata(null));



        public ObservableCollection<Album> Albums
        {
            get { return (ObservableCollection<Album>)GetValue(AlbumsProperty); }
            set { SetValue(AlbumsProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Albums.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty AlbumsProperty =
            DependencyProperty.Register("Albums", typeof(ObservableCollection<Album>), typeof(PlayList), new UIPropertyMetadata(null));

        

        public PlayList()
        {
            Items = new ObservableCollection<MediaItem>();
            Albums = new ObservableCollection<Album>();
        }

        
    }
}
